package com.university.report.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.university.report.model.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * <p>
 * 
 * </p>
 *
 * @author Jinondo
 * @since 2021-06-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_dict")
public class Dict extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "父结点id")
    private Integer parentId;
    @ApiModelProperty(value = "名字")
    private String name;

    private String value;

    /**
     * 编码
     */
    @ApiModelProperty(value = "编码")
    private String dictCode;

    @TableField(exist = false)
    private boolean hasChildren;

}
